<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
${aier_doctype}
<html <s:property value="aier-html-xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<title>${aier_title}</title>
<link rel="stylesheet" href="${aier_css_url}${aier_jqui_css}ui.css" />
<link rel="Stylesheet" href="${aier_css_url}jq/jq.css" />
<link rel="Stylesheet" href="${aier_css_url}jq/multiselect.css" />
<link rel="stylesheet" href="${aier_css_url}jc/chosen.css">
<link rel="stylesheet" href="${aier_css_url}social/module/jq-msg.css" />
<link rel="stylesheet" href="${aier_css_url}social/module/reset.css" />
<link rel="stylesheet" href="${aier_css_url}social/school/schoolhomepage.css" />
<link rel="stylesheet" href="${aier_css_url}social/module/reset.css" />
<link rel="stylesheet" href="${aier_css_url}social/module/btn.css" />

<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
<script type="text/javascript" src="${aier_js_url}${aier_jqui_js}ui.js"></script>
<script type="text/javascript" src="${aier_js_url}97/WdatePicker.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/msg.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/cn.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/jq.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/ja.js"></script>
<script type="text/javascript" src="${aier_js_url}jc/cj.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/block.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/multiselect.js"></script>
<script type="text/javascript" src="${aier_js_url}social/classes/cminvite.js"></script>
<script type="text/javascript" src="${aier_js_url}trantime/jquery-aier.js"></script>
<script type="text/javascript">
	var global_suffix = "${aier_suffix}", global_url = "${aier_url}", global_uri = "${aier_uri}", global_urijs = "${aier_urijs}", 
		global_sid = "${sid}",global_tid = "${tid}";
</script>
</head>
<body>
<!-- 顶栏 -->
<s:action name="userhomecomm_homeHead" namespace="/user" executeResult="true"></s:action>
<!-- end 顶栏 -->

	<div class="window-content">

		<!-- 正文 -->
		<div class="wrap wrap-school-center">
			<!-- school topBg -->
			<s:action name="scomm_schoolHTitle" namespace="/school" executeResult="true"></s:action>
		
			<!-- main -->

			<div class="wrap-main">
				<!-- 中间导航栏 -->
				<div class="wrap-main-nav">
					<ul class="float-list clearfix">
						<li><a class="school-center-tag" href="${aier_url}school/schoolhome_home.shtml?sid=${sid}">学校简介</a></li>
						<li><a class="school-center-tag" href="${aier_url}school/schoolhome_schoolTeacher.shtml?sid=${sid}&in_type=3">师资力量</a></li>
						<li><a class="school-center-tag current" href="${aier_url}school/schoolhome_schoolClass.shtml?sid=${sid}&in_type=1">班级园地</a></li>
						<li><a class="school-center-tag" href="${aier_url}school/schoolhome_schoolAnno.shtml?sid=${sid}&in_type=2">校园公告</a></li>
						<li><a class="school-center-tag last-has-border" href="${aier_url}school/schoolalbum${aier_suffix}?sid=${sid}">学校相册</a></li>
					</ul>
				</div>

				<!-- 信息流和侧栏 -->
				<div class="wrap-main-column clearfix">


					<!-- 信息流  -->

					<div class="wrap-main-column-stream ">
						<div class="main-column-inside">
							<div class="school-classes">
								<div class="title">
									<div class="group">班级园地<span>共有${classList.size()}个班级</span></div>
								</div>
								<div class="classes-navbar">
									<ul class="float-list clearfix">
										<li><a href="" class="btn btn-orange-2"><span>全部</span></a></li>
										<c:forEach  var="cl" items="${classList }">
											<li><a href="">${cl.cname }</a></li>
										</c:forEach>
									</ul>
								</div>
								<div class="classes-list clearfix">
									<c:forEach  var="cl" items="${classList }">
									<div class="classes-item">
										<div class="avatar"><img src="${classlogo_get_url}small/${cl.clogo }" width='50' height='50'></div>
										
										<div class="info">
											<div class="name"></div>
											<div class="class">
												${cl.cname }
											</div>
											<div class="class-info">
												<ul class="float-list clearfix">
													<li>老师:<span>${cl.num_teacher }</span></li>
													<!-- <li>学生:<span>${cl.num_student }</span></li> -->
													<li>家长:<span>${cl.num_parent }</span></li>
												</ul>
											</div>
										</div>
										<!--<a href="" class="btn-follow btn-orange-2"><em class="icon-1 icon-1-plus"></em><span>关注</span></a>-->
									</div>
									</c:forEach>
								</div>
							</div>
						</div>
					</div>
					
					<!-- 侧栏 -->
					<s:action name="scomm_schoolHRight" namespace="/school" executeResult="true"></s:action>
					<!-- 侧栏结束 -->


					</div>	

				</div>
				<!-- 返回顶部 -->
				<s:action name="userhomecomm_backToTop" namespace="/user" executeResult="true"></s:action>
				<!-- end 返回顶部 -->
			</div>
		<!-- footer copyright -->
		<s:action name="userhomecomm_homeFooter" namespace="/user" executeResult="true"></s:action>
		<!-- /footer copyright -->
	</div>

	

<script>

// trantime
$('.b-from .public-time').each(function(){
	$(this).html(tranTime(parseInt($(this).attr('data-stamp'))));
});



// btt


$(window).bind('scroll', function(){
	var a = $(this).scrollTop(),
		b = $(this).outerHeight();
	if ( a > 100 ) {
		$('#btt').css({'display':'block','top':a+b-200});
	} else {
		$('#btt').css('display','none');
	}
});



// 预览图和完整图切换
$('.zoom-out,.collapse-btn').click(function(){
	$(this).parents('.xxs-extend').css('display','none')
	.prev('.xxs-media-pre').css('display','block');
});
$('.zoom-in').click(function(){
	$(this).parents('.xxs-media-pre').css('display','none')
	.next('.xxs-extend').css('display','block');
});





</script>


</body>
</html>

